package io.renren.modules.beauty.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2019-04-09
 */
@Data
@ApiModel(value = "")
public class BeautyPackageDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@Null(message="{id.null}", groups = AddGroup.class)
	@NotNull(message="{id.require}", groups = UpdateGroup.class)
	private Long id;

	@ApiModelProperty(value = "类型")
	private Integer type;

	@ApiModelProperty(value = "套餐名称")
	private String name;

	@ApiModelProperty(value = "套餐内容")
	private String content;

	@ApiModelProperty(value = "套餐价格")
	private BigDecimal price;

	@ApiModelProperty(value = "套餐周期")
	private Integer duration;

	@ApiModelProperty(value = "套餐介绍")
	private String introduce;

	@ApiModelProperty(value = "创建时间")
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private Date createDate;

}